package com.centerm.bluetooth.model;

/**
 * Created by linwenhui on 2017/2/8.
 */

public class Respond {
    public final static int REQ = 0x01;
    public final static int NOTICE = 0x02;
    public final static int RESPOND = 0x03;
    private RespondStatus respondStatus;
    private int type;
    private byte[] cmd;
    private byte[] content;
    private byte[] allPackageData;

    public Respond(RespondStatus respondStatus) {
        this(respondStatus, RESPOND);
    }

    public Respond(RespondStatus respondStatus, int type) {
        this.respondStatus = respondStatus;
        this.type = type;
    }

    public Respond(RespondStatus respondStatus, byte[] content) {
        this(respondStatus, RESPOND, content);
    }

    public Respond(RespondStatus respondStatus, int type, byte[] content) {
        this.respondStatus = respondStatus;
        this.type = type;
        this.content = content;
    }

    public RespondStatus getRespondStatus() {
        return respondStatus;
    }

    public void setRespondStatus(RespondStatus respondStatus) {
        this.respondStatus = respondStatus;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public byte[] getAllPackageData() {
        return allPackageData;
    }

    public Respond setAllPackageData(byte[] allPackageData) {
        this.allPackageData = allPackageData;
        return this;
    }


    public byte[] getCmd() {
        return cmd;
    }

    public Respond setCmd(byte[] cmd) {
        this.cmd = cmd;
        return this;
    }
}
